#include "QxWellLogDataModel.hpp"

#include "QxWellLogDefine.hpp"

class QxWellLogDataModel::QxWellLogDataModelPrivate
{
public:

  QxWellLogDataModelPrivate( QxWellLogDataModel* me ) : m_self( me ) {
  }

  void init() {
  }

  QxWellLogDataModel*         m_self;

  QxWellLogDefine             m_wellLogInfo;
  QVector<float>              m_data;
};

QxWellLogDataModel::QxWellLogDataModel() : _pd( new QxWellLogDataModelPrivate( this ) )
{
  _pd->init();
}

QxWellLogDataModel::~QxWellLogDataModel()
{
}

const QString& QxWellLogDataModel::wellName() const
{
  return _pd->m_wellLogInfo.wellName;
}

void QxWellLogDataModel::setWellName( const QString& wellName )
{
  _pd->m_wellLogInfo.wellName = wellName;
}

const QString& QxWellLogDataModel::wellLogName() const
{
  return _pd->m_wellLogInfo.wellLogName;
}

void QxWellLogDataModel::setWellLogName( const QString& wellLogName )
{
  _pd->m_wellLogInfo.wellLogName = wellLogName;
}

float QxWellLogDataModel::startDepth() const
{
  return _pd->m_wellLogInfo.startDepth;
}

void QxWellLogDataModel::setStartDepth( float startDepth )
{
  _pd->m_wellLogInfo.startDepth = startDepth;
}

float QxWellLogDataModel::stopDepth() const
{
  return _pd->m_wellLogInfo.stopDepth;
}

void QxWellLogDataModel::setStopDepth( float stopDepth )
{
  _pd->m_wellLogInfo.stopDepth = stopDepth;
}

float QxWellLogDataModel::stepDepth() const
{
  return _pd->m_wellLogInfo.stepDepth;
}

void QxWellLogDataModel::setStepDepth( float stepDepth )
{
  _pd->m_wellLogInfo.stepDepth = stepDepth;
}

float QxWellLogDataModel::nullValue() const
{
  return _pd->m_wellLogInfo.nullValue;
}

void QxWellLogDataModel::setNullValue( float nullValue )
{
  _pd->m_wellLogInfo.nullValue = nullValue;
}

int QxWellLogDataModel::type() const
{
  return _pd->m_wellLogInfo.type;
}

void QxWellLogDataModel::setType( int type )
{
  _pd->m_wellLogInfo.type = type;
}

const QVector<float>& QxWellLogDataModel::data() const
{
  return _pd->m_data;
}

void QxWellLogDataModel::setData( const QVector<float>& data )
{
  _pd->m_data = data;
}
